Page({
    data: {
        phone: "",
        rolesNameTop: [ "策划师", "主持人", "摄像师", "摄影师", "化妆师", "督导师" ],
        rolesImageTop: [ "role_sponsor", "role_host", "role_shexiang", "role_video", "role_dress", "role_dudao" ],
        rolesNameCenter: [ "客服", "花艺师", "灯光师", "场布", "车队", "设计师", "婚 纱", "音响师", "喜娘", "大屏" ],
        rolesImageCenter: [ "role_kefu", "role_huayi", "role_dengguan", "role_changbu", "role_car", "role_sheji", "ic_role_hunsha", "ic_role_yinxiang", "ic_role_xiniang", "ic_role_daping" ],
        rolesNameBottom: [ "歌手", "乐器", "舞蹈", "杂技", "魔术", "演员" ],
        rolesImageBottom: [ "role_singer", "role_yueqi", "role_wudao", "role_zaji", "role_moshu", "role_yangyuan" ]
    },
    clickRole: function(e) {
        var o = e.currentTarget.dataset.index, n = e.currentTarget.dataset.name, r = e.detail.userInfo;
        console.log(o), this.goToImprovePage(o, n, r);
    },
    clickRoleCenter: function(e) {
        var o = e.currentTarget.dataset.index, n = e.currentTarget.dataset.name;
        o > 12 && (o += 6), console.log(o);
        var r = e.detail.userInfo;
        this.goToImprovePage(o, n, r);
    },
    goToImprovePage: function(e, o, n) {
        var r = this;
        wx.navigateTo({
            url: "../completeInfo/completeInfo?nickName=" + n.nickName + "&city=" + n.city + "&province=" + n.province + "&avatarUrl=" + n.avatarUrl + "&gender=" + (1 == n.gender ? "1" : "0") + "&role=" + e + "&roleCn=" + o + "&phone=" + r.data.phone
        });
    },
    onLoad: function(e) {
        console.log(e), this.setData({
            phone: e.phone
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});